package main

import "fmt"

func main()  {
var ch1 chan bool
fmt.Println(ch1)
fmt.Printf("%T\n",ch1) //chan bool
ch1=make(chan bool)
fmt.Println(ch1)


go func() {
	for i:=0;i<10;i++{
		fmt.Println("子goroutine中，i",i)
	}
	ch1<-true
	fmt.Println("结束")
}()
data:=<-ch1
fmt.Println(data)
fmt.Println("main....over....")

}
